package com.jz.cash.client.query;

public enum ConditionState {


    EQ("EQ","="),
    CN("CN","like"),
    GT("GT",">"),
    GTE("GTE",">="),
    LT("LT","<"),
    LTE("LTE","<=");

    private ConditionState(String key, String value) {
        this.key = key;
        this.value = value;
    }

    private String key;

    private String value;

    public String getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }

    public static String getValueByKey(String key) {
        for (ConditionState value : ConditionState.values()) {
            if (value.getKey().equalsIgnoreCase(key)) {
                return value.getValue();
            }
        }
        return ConditionState.EQ.getValue();
    }
}
